﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E97 RID: 3735
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonDialogueBasicInfo : IMessage<RogueCommonDialogueBasicInfo>, IMessage, IEquatable<RogueCommonDialogueBasicInfo>, IDeepCloneable<RogueCommonDialogueBasicInfo>, IBufferMessage
	{
		// Token: 0x17002F60 RID: 12128
		// (get) Token: 0x0600A752 RID: 42834 RVA: 0x001C3EB9 File Offset: 0x001C20B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonDialogueBasicInfo> Parser
		{
			get
			{
				return RogueCommonDialogueBasicInfo._parser;
			}
		}

		// Token: 0x17002F61 RID: 12129
		// (get) Token: 0x0600A753 RID: 42835 RVA: 0x001C3EC0 File Offset: 0x001C20C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonDialogueBasicInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F62 RID: 12130
		// (get) Token: 0x0600A754 RID: 42836 RVA: 0x001C3ED2 File Offset: 0x001C20D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonDialogueBasicInfo.Descriptor;
			}
		}

		// Token: 0x0600A755 RID: 42837 RVA: 0x001C3ED9 File Offset: 0x001C20D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueBasicInfo()
		{
		}

		// Token: 0x0600A756 RID: 42838 RVA: 0x001C3EE1 File Offset: 0x001C20E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueBasicInfo(RogueCommonDialogueBasicInfo other) : this()
		{
			this.talkDialogueId_ = other.talkDialogueId_;
			this.aeonTalkId_ = other.aeonTalkId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A757 RID: 42839 RVA: 0x001C3F12 File Offset: 0x001C2112
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonDialogueBasicInfo Clone()
		{
			return new RogueCommonDialogueBasicInfo(this);
		}

		// Token: 0x17002F63 RID: 12131
		// (get) Token: 0x0600A758 RID: 42840 RVA: 0x001C3F1A File Offset: 0x001C211A
		// (set) Token: 0x0600A759 RID: 42841 RVA: 0x001C3F22 File Offset: 0x001C2122
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TalkDialogueId
		{
			get
			{
				return this.talkDialogueId_;
			}
			set
			{
				this.talkDialogueId_ = value;
			}
		}

		// Token: 0x17002F64 RID: 12132
		// (get) Token: 0x0600A75A RID: 42842 RVA: 0x001C3F2B File Offset: 0x001C212B
		// (set) Token: 0x0600A75B RID: 42843 RVA: 0x001C3F33 File Offset: 0x001C2133
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AeonTalkId
		{
			get
			{
				return this.aeonTalkId_;
			}
			set
			{
				this.aeonTalkId_ = value;
			}
		}

		// Token: 0x0600A75C RID: 42844 RVA: 0x001C3F3C File Offset: 0x001C213C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonDialogueBasicInfo);
		}

		// Token: 0x0600A75D RID: 42845 RVA: 0x001C3F4A File Offset: 0x001C214A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonDialogueBasicInfo other)
		{
			return other != null && (other == this || (this.TalkDialogueId == other.TalkDialogueId && this.AeonTalkId == other.AeonTalkId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A75E RID: 42846 RVA: 0x001C3F88 File Offset: 0x001C2188
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TalkDialogueId != 0U)
			{
				num ^= this.TalkDialogueId.GetHashCode();
			}
			if (this.AeonTalkId != 0U)
			{
				num ^= this.AeonTalkId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A75F RID: 42847 RVA: 0x001C3FE0 File Offset: 0x001C21E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A760 RID: 42848 RVA: 0x001C3FE8 File Offset: 0x001C21E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A761 RID: 42849 RVA: 0x001C3FF4 File Offset: 0x001C21F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AeonTalkId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AeonTalkId);
			}
			if (this.TalkDialogueId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.TalkDialogueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A762 RID: 42850 RVA: 0x001C4050 File Offset: 0x001C2250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TalkDialogueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TalkDialogueId);
			}
			if (this.AeonTalkId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AeonTalkId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A763 RID: 42851 RVA: 0x001C40A8 File Offset: 0x001C22A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonDialogueBasicInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TalkDialogueId != 0U)
			{
				this.TalkDialogueId = other.TalkDialogueId;
			}
			if (other.AeonTalkId != 0U)
			{
				this.AeonTalkId = other.AeonTalkId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A764 RID: 42852 RVA: 0x001C40F8 File Offset: 0x001C22F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A765 RID: 42853 RVA: 0x001C4104 File Offset: 0x001C2304
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.TalkDialogueId = input.ReadUInt32();
					}
				}
				else
				{
					this.AeonTalkId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004412 RID: 17426
		private static readonly MessageParser<RogueCommonDialogueBasicInfo> _parser = new MessageParser<RogueCommonDialogueBasicInfo>(() => new RogueCommonDialogueBasicInfo());

		// Token: 0x04004413 RID: 17427
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004414 RID: 17428
		public const int TalkDialogueIdFieldNumber = 6;

		// Token: 0x04004415 RID: 17429
		private uint talkDialogueId_;

		// Token: 0x04004416 RID: 17430
		public const int AeonTalkIdFieldNumber = 2;

		// Token: 0x04004417 RID: 17431
		private uint aeonTalkId_;
	}
}
